﻿using Inaction.Criteria;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Inaction.Linq.Clause
{
    class NullClause : WhereClause
    {
        public NullClause(LinqRoot root)
            : base(root, null)
        {
            Operate = CriteriaOperate.IsNull;
        }

        public override string GetClauseSql()
        {
            return Rule.EnumDescription.GetDescription(Operate);
        }

        public override string ToString()
        {
            return Rule.EnumDescription.GetDescription(Operate);
        }
    }
}
